@media print {
  .tree-node-container[data-rem-container-tags~="page-break-after"]
    > div:first-child {
    page-break-after: always;
  }
  .tree-node-container[data-rem-container-tags~="page-break-before"]
    > div:first-child {
    page-break-before: always;
  }
}

@media screen {
  .tree-node-container[data-rem-container-tags~="page-break-after"]
    > div:first-child {
    border-bottom: 2px dashed grey;
  }

  .tree-node-container[data-rem-container-tags~="page-break-before"]
    > div:first-child {
    border-top: 2px dashed grey;
  }
}
